package no.ntnu.fp.model.events;

import no.ntnu.fp.model.Appointment;
import no.ntnu.fp.model.DialogModel.StateOfDialog;
import no.ntnu.fp.model.Notice;

@SuppressWarnings("serial")
public class DialogChangeEvent extends ModelEvent {
	private final Appointment oldAppointment, newAppointment;
	private final StateOfDialog newState, oldState;
	private final Notice notice;
	

	public DialogChangeEvent(Object source, Appointment oldAppointment, 
			Appointment appointment, StateOfDialog oldState, Notice notice, 
													StateOfDialog newState) {
		super(source);
		this.oldAppointment = oldAppointment;
		this.newAppointment = appointment;
		this.newState = newState;
		this.oldState = oldState;
		this.notice = notice;
	}	
	
	public Appointment getOldAppointment(){
		return this.oldAppointment;
	}
	public Appointment getNewAppointment(){
		return this.newAppointment;
	}
	public StateOfDialog getNewState(){
		return this.newState;
	}
	public StateOfDialog getOldState(){
		return this.oldState;
	}

	public Notice getNotice() {
		return notice;
	}
}
